/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_medidaCriteria extends AbstractORMCriteria {
	public final IntegerExpression me_id_medida;
	public final StringExpression me_unidad_medida;
	
	public Tbv_medidaCriteria(Criteria criteria) {
		super(criteria);
		me_id_medida = new IntegerExpression("me_id_medida", this);
		me_unidad_medida = new StringExpression("me_unidad_medida", this);
	}
	
	public Tbv_medidaCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_medida.class));
	}
	
	public Tbv_medidaCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_productoCriteria createTbv_productoCriteria() {
		return new Tbv_productoCriteria(createCriteria("ORM_Tbv_producto"));
	}
	
	public Tbv_medida uniqueTbv_medida() {
		return (Tbv_medida) super.uniqueResult();
	}
	
	public Tbv_medida[] listTbv_medida() {
		java.util.List list = super.list();
		return (Tbv_medida[]) list.toArray(new Tbv_medida[list.size()]);
	}
}

